package org.springblade.modules.admin.dto.rescue;

import cn.hutool.core.convert.Convert;
import cn.hutool.core.date.DateUtil;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiOperation;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * @author zcc
 * @version 1.0
 * @date 2024/7/8 16:29
 */
@Data
public class PlanAddUserSearchDTO {


	/**
	 * 工单类型-1:保养，2：维修....
	 * -1 表示空闲
	 */
	private List<Integer> typeStatus;

	@ApiModelProperty("用户名称")
	private String userName;

	@ApiModelProperty("项目id")
	private String buildingIds;

	@ApiModelProperty("项目id")
	private Long elevatorId;

	@ApiModelProperty("技能ids")
	private List<Long> skillIds;

	@ApiModelProperty("品牌ids")
	private List<Long> brandIds;

	@ApiModelProperty("部门ids")
	private List<Long> groupIds;

	@ApiModelProperty("当前租户")
	private String tenantId;

	@ApiModelProperty("附近的人当前距离，单位米")
	private Integer distance;

	@ApiModelProperty("附近的人1:实时定位,2:附近居住")
	private Integer distanceType;

	private List<Long> userIds;

	private Date beginTime = DateUtil.offsetDay(new Date(), -3);

	private Date endTime = new Date();

	@ApiModelProperty("1:表示获取值班人员，0非")
	private Integer signType = 0;

	@ApiModelProperty(value = "0: 工作日，1: 休息日,2:值班")
	private Integer holiday;

	private Integer todayDate = Convert.toInt(DateUtil.format(new Date(),"yyyyMMdd"));
}
